
package com.jf.cloud.api.payment.feign;

import com.jf.cloud.api.payment.dto.OrderPayInfoDTO;
import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author zz
 * @Date 2022/08/10 9:21
 */
@FeignClient(value = "jfcloud-payment",contextId = "payment")
public interface PaymentFeignClient {

    /**
     * 查询订单是否支付成功, 已经支付成功的订单进行支付成功处理
     * @param orderPayInfoDTO 订单id列表
     * @return 支付成功的订单id列表
     */
    @PostMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/insider/queryAndHandleOrderPaySuccess")
    ServerResponseEntity<List<Long>> queryAndHandleOrderPaySuccess(@RequestBody OrderPayInfoDTO orderPayInfoDTO);
}
